package com.sy.bean;

import com.sy.common.valid.ISave;
import com.sy.common.valid.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("企业")
public class Enterprise {
    @ApiModelProperty("企业id,修改时不能为空!")
    @NotNull(message = "id不能为空", groups = {IUpdate.class})
    @Min(value = 1, message = "请填写正确id", groups = {IUpdate.class})
    int id;
    @ApiModelProperty(hidden = true)
    String code;
    @ApiModelProperty(value = "企业名称,不可修改", required = true)
    @NotBlank(message = "企业名称不能为空!", groups = {ISave.class})
    String name;
    String user;
    String mobile;
    String categoryCode;
    String categoryName;
    String address;
    String createTime;
    String expireDate;

}
